home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / tclX6.4c / dist / tcllib / help / lists / list < prev    next >
Encoding:
Text File  |  1992-11-10  |  998 b   |  23 lines

  1.           list arg ?arg ...?
  2.                This command returns a list comprised of all the  args.
  3.                Braces  and backslashes get added as necessary, so that
  4.                the index command may be used  on  the  result  to  re-
  5.                extract  the  original arguments, and also so that eval
  6.                may be used to execute the resulting  list,  with  arg1
  7.                comprising  the  command's  name  and  the  other  args
  8.                comprising  its  arguments.   List  produces   slightly
  9.                different  results  than  concat:   concat  removes one
  10.                level of grouping before forming the list,  while  list
  11.                works   directly  from  the  original  arguments.   For
  12.                example, the command
  13.  
  14.                     list a b {c d e} {f {g h}}
  15.  
  16.                will return
  17.  
  18.                     a b {c d e} {f {g h}}
  19.                while concat with the same arguments will return
  20.  
  21.                     a b c d e f {g h}
  22.  
  23.